home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / ANIMCTRL.H next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  66 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.9  $
  6. //
  7. // Definition of class TAnimateCtrl
  8. //----------------------------------------------------------------------------
  9. #if !defined(OWL_ANIMCTRL_H)
  10. #define OWL_ANIMCTRL_H
  11.  
  12. #if !defined(OWL_DEFS_H)
  13. # include <owl/defs.h>
  14. #endif
  15. #if !defined(BI_PLAT_WIN32)
  16. # error OWL: Animctrl.h only supports WIN32 targets
  17. #endif
  18.  
  19. #if !defined(OWL_COMMCTRL_H)
  20. # include <owl/commctrl.h>
  21. #endif
  22.  
  23. // Generic definitions/compiler options (eg. alignment) preceeding the 
  24. // definition of classes
  25. #include <services/preclass.h>
  26.  
  27. #if defined(BI_NAMESPACE)
  28. namespace OWL {
  29. #endif
  30.  
  31. //
  32. // class TAnimateCtrl
  33. // ~~~~~ ~~~~~~~~~~~~
  34. // Encapsulates the Animation Control [a window that silently displays
  35. // an Audio Video Interleaved, AVI clip].
  36. // NOTE: This control can only display uncompressed or RLE-compressed
  37. //       AVI files.
  38. //
  39. class _OWLCLASS TAnimateCtrl : public TControl {
  40.   public:
  41.     TAnimateCtrl(TWindow* parent, int id, int x, int y, int w, int h,
  42.                  TModule* module = 0);
  43.     TAnimateCtrl(TWindow* parent, int resourceId, TModule* module = 0);
  44.    ~TAnimateCtrl();
  45.  
  46.     // Operations on the object
  47.     //
  48.     bool      Open(char far* fileOrRes);
  49.     bool      Play(uint16 start = 0, uint16 end = -1, uint repeat = 1);
  50.     bool      Seek(uint16 frame);
  51.     void      Stop();
  52.  
  53.   protected:
  54.     char far* GetClassName();
  55. };
  56.  
  57. #if defined(BI_NAMESPACE)
  58. } // namespace OWL
  59. #endif
  60.  
  61. // Generic definitions/compiler options (eg. alignment) following the 
  62. // definition of classes
  63. #include <services/posclass.h>
  64.  
  65. #endif  // OWL_ANIMCTRL_H
  66.